<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AmpleHarvest: cMailNotification.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">AmpleHarvest
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('c_mail_notification_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">cMailNotification.php</div>  </div>
</div>
<div class="contents">
<a href="c_mail_notification_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00005"></a>00005         use\ampleharvest\code;
<a name="l00006"></a>00006         require_once(dirname(dirname(dirname(__FILE__)))) . <span class="stringliteral">&#39;/config/cConfig.php&#39;</span>;
<a name="l00007"></a>00007         require_once dirname(dirname(__FILE__)) . <span class="stringliteral">&#39;/cStomp.php&#39;</span>;
<a name="l00008"></a>00008 
<a name="l00009"></a>00009         require_once code\cConfig::C_STR_PHP_MAILER_PATH . <span class="stringliteral">&#39;/class.phpmailer.php&#39;</span>;
<a name="l00010"></a>00010 
<a name="l00024"></a><a class="code" href="classc_mail_notification.html">00024</a>         <span class="keyword">class </span><a class="code" href="classc_mail_notification.html" title="Class to handle sending Email notifications.">cMailNotification</a>
<a name="l00025"></a>00025         {
<a name="l00030"></a><a class="code" href="classc_mail_notification.html#a4a4f776b4222a171a043c6d83bd28a3a">00030</a>                 <span class="keyword">protected</span> <a class="code" href="classc_mail_notification.html#a4a4f776b4222a171a043c6d83bd28a3a" title="From Address.">$m_str_From</a> = null;
<a name="l00031"></a>00031 
<a name="l00036"></a><a class="code" href="classc_mail_notification.html#a3b77cce89c6b56ea247c1f7c7d10f849">00036</a>                 <span class="keyword">protected</span> <a class="code" href="classc_mail_notification.html#a3b77cce89c6b56ea247c1f7c7d10f849" title="Holds any error information returned while sending mail.">$m_str_Error</a> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00037"></a>00037 
<a name="l00042"></a><a class="code" href="classc_mail_notification.html#ad32d66779df8c5cedce756ce513fd757">00042</a>                 <span class="keyword">protected</span> <a class="code" href="classc_mail_notification.html#ad32d66779df8c5cedce756ce513fd757" title="to Address">$m_arr_To</a> = array();
<a name="l00043"></a>00043 
<a name="l00048"></a><a class="code" href="classc_mail_notification.html#a921bb76c5732b295ee42b5445c29f5ab">00048</a>                 <span class="keyword">protected</span> <a class="code" href="classc_mail_notification.html#a921bb76c5732b295ee42b5445c29f5ab" title="CC Address.">$m_arr_CC</a> = array();
<a name="l00049"></a>00049 
<a name="l00054"></a><a class="code" href="classc_mail_notification.html#a4d148d2506409b78769588ffead582ac">00054</a>                 <span class="keyword">protected</span> <a class="code" href="classc_mail_notification.html#a4d148d2506409b78769588ffead582ac" title="Subject.">$m_str_Subject</a> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00055"></a>00055 
<a name="l00060"></a><a class="code" href="classc_mail_notification.html#a96436016c3ff6e38e6bfd5bd1523b990">00060</a>                 <span class="keyword">protected</span> <a class="code" href="classc_mail_notification.html#a96436016c3ff6e38e6bfd5bd1523b990" title="Body.">$m_str_Body</a> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00061"></a>00061 
<a name="l00062"></a><a class="code" href="classc_mail_notification.html#aaf11785905da71774e052912d784e3b4">00062</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#aaf11785905da71774e052912d784e3b4">__sleep</a>()
<a name="l00063"></a>00063                 {
<a name="l00064"></a>00064                         <span class="keywordflow">return</span> array(<span class="stringliteral">&#39;m_arr_cc&#39;</span>, <span class="stringliteral">&#39;m_arr_To&#39;</span>, <span class="stringliteral">&#39;m_str_Body&#39;</span>, <span class="stringliteral">&#39;m_str_Error&#39;</span>, <span class="stringliteral">&#39;m_str_From&#39;</span>, <span class="stringliteral">&#39;m_str_Subject&#39;</span>);
<a name="l00065"></a>00065                 }
<a name="l00066"></a>00066 
<a name="l00071"></a><a class="code" href="classc_mail_notification.html#a1fb929599bf3a05e34aec500ca604f2e">00071</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#a1fb929599bf3a05e34aec500ca604f2e" title="This function will add a TO address.">add_To</a>($str_Email)
<a name="l00072"></a>00072                 {
<a name="l00073"></a>00073                         $this-&gt;m_arr_To[] = $str_Email;
<a name="l00074"></a>00074                 }
<a name="l00075"></a>00075 
<a name="l00080"></a><a class="code" href="classc_mail_notification.html#a4326365ccd9a263987a28b05c81f2944">00080</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#a4326365ccd9a263987a28b05c81f2944" title="This function will add a TO address.">add_CC</a>($str_Email)
<a name="l00081"></a>00081                 {
<a name="l00082"></a>00082                         $this-&gt;m_arr_CC[] = $str_Email;
<a name="l00083"></a>00083                 }
<a name="l00084"></a>00084 
<a name="l00089"></a><a class="code" href="classc_mail_notification.html#a12bcef5130168b80d3d52dc82213f19a">00089</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#a12bcef5130168b80d3d52dc82213f19a" title="Sends the Email to STOMP QUEue.">send</a>()
<a name="l00090"></a>00090                 {
<a name="l00091"></a>00091                         <a class="code" href="clear___solr_8php.html#afa0d7b0c7479aae81fe045a548936c3f">$obj_Stomp</a> = new \cStomp();
<a name="l00092"></a>00092                         <span class="keywordflow">if</span> ((<span class="keyword">sizeof</span>($this-&gt;m_arr_To) &lt; 1) &amp;&amp; (<span class="keyword">sizeof</span>($this-&gt;m_arr_CC) &lt; 1))
<a name="l00093"></a>00093                         {
<a name="l00094"></a>00094                                 $this-&gt;<a class="code" href="classc_mail_notification.html#ae0aeef2e4fe928100c40c8e413ea3a82">set_Error</a>(<span class="stringliteral">&quot;This email has no addressees.&quot;</span>);
<a name="l00095"></a>00095                                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00096"></a>00096                         }
<a name="l00097"></a>00097                         <span class="keywordflow">return</span> <a class="code" href="clear___solr_8php.html#afa0d7b0c7479aae81fe045a548936c3f">$obj_Stomp</a>-&gt;send(\<a class="code" href="classc_stomp.html#ab031506db601a287507c29c7b436c5ab">cStomp::C_STR_QUEUE_EMAIL</a>, $this-&gt;<a class="code" href="classc_mail_notification.html#a89fac534e9e20274962f411a173d0bf5">get_AsJson</a>());
<a name="l00098"></a>00098                 }
<a name="l00099"></a>00099 
<a name="l00100"></a><a class="code" href="classc_mail_notification.html#a89fac534e9e20274962f411a173d0bf5">00100</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#a89fac534e9e20274962f411a173d0bf5">get_AsJson</a>()
<a name="l00101"></a>00101                 {
<a name="l00102"></a>00102                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a> = <span class="keyword">new</span> stdClass();
<a name="l00103"></a>00103 
<a name="l00104"></a>00104                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;cc = $this-&gt;m_arr_CC;
<a name="l00105"></a>00105                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;to = $this-&gt;m_arr_To;
<a name="l00106"></a>00106                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;body = $this-&gt;<a class="code" href="classc_mail_notification.html#ab82c92e2745c3e15a7028f770091c094" title="Gets the content of the email.">get_Body</a>();
<a name="l00107"></a>00107                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;from = $this-&gt;<a class="code" href="classc_mail_notification.html#aa008b15b13fa348e14244158f7bd2746" title="Gets the from Address.">get_From</a>();
<a name="l00108"></a>00108                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;subject = $this-&gt;<a class="code" href="classc_mail_notification.html#af1829677e10e85cba261ff239fda40eb" title="Returns the subject of the email.">get_Subject</a>();
<a name="l00109"></a>00109 
<a name="l00110"></a>00110                         <span class="keywordflow">return</span> json_encode(<a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>);
<a name="l00111"></a>00111                 }
<a name="l00112"></a>00112 
<a name="l00113"></a><a class="code" href="classc_mail_notification.html#adaf66d7e60d184c6e952a311c5df0e4d">00113</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#adaf66d7e60d184c6e952a311c5df0e4d">load_FromJson</a>($str_Json)
<a name="l00114"></a>00114                 {
<a name="l00115"></a>00115                         <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a> = json_decode($str_Json);
<a name="l00116"></a>00116 
<a name="l00117"></a>00117                         $this-&gt;m_arr_CC = <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;cc;
<a name="l00118"></a>00118                         $this-&gt;m_arr_To = <a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;to;
<a name="l00119"></a>00119                         $this-&gt;<a class="code" href="classc_mail_notification.html#acbe3cfbe6a70923b421d61ccece35e36" title="Sets the text of the body.">set_Body</a>(nl2br(<a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;body));
<a name="l00120"></a>00120                         $this-&gt;<a class="code" href="classc_mail_notification.html#aa905f827d98bdd8a2cdbc81d01f9febe">set_From</a>(<a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;from);
<a name="l00121"></a>00121                         $this-&gt;<a class="code" href="classc_mail_notification.html#a8ad0cbd4250509618c3b4c829f1b251b" title="Sets the Subject of the email.">set_Subject</a>(<a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>-&gt;subject);
<a name="l00122"></a>00122 
<a name="l00123"></a>00123                         <span class="keywordflow">return</span> json_encode(<a class="code" href="scripts_2data_processing_2send___email_8php.html#aefe96a99c9589b4cec0e83367a9d8001">$obj_Email</a>);
<a name="l00124"></a>00124                 }
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="classc_mail_notification.html#aac03613c18f94820f053a367426f14da">00126</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#aac03613c18f94820f053a367426f14da">send_JSONMail</a>($str_Json)
<a name="l00127"></a>00127                 {
<a name="l00128"></a>00128                         $this-&gt;<a class="code" href="classc_mail_notification.html#adaf66d7e60d184c6e952a311c5df0e4d">load_FromJson</a>($str_Json);
<a name="l00129"></a>00129                         <span class="keywordflow">return</span> $this-&gt;<a class="code" href="classc_mail_notification.html#a182136db87389c073bbcf736b3a7732c" title="Sends the Email.">send_EMail</a>();
<a name="l00130"></a>00130                 }
<a name="l00131"></a>00131 
<a name="l00136"></a><a class="code" href="classc_mail_notification.html#a182136db87389c073bbcf736b3a7732c">00136</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#a182136db87389c073bbcf736b3a7732c" title="Sends the Email.">send_EMail</a>()
<a name="l00137"></a>00137                 {
<a name="l00138"></a>00138                         ob_start();
<a name="l00139"></a>00139                         $mail = <span class="keyword">new</span> PHPMailer();
<a name="l00140"></a>00140                         $mail-&gt;IsSMTP();
<a name="l00141"></a>00141                         <span class="comment">/*</span>
<a name="l00142"></a>00142 <span class="comment">                         //GMAIL config</span>
<a name="l00143"></a>00143 <span class="comment">                         $mail-&gt;SMTPAuth = true; // enable SMTP authentication</span>
<a name="l00144"></a>00144 <span class="comment">                         $mail-&gt;SMTPSecure = &quot;ssl&quot;; // sets the prefix to the server</span>
<a name="l00145"></a>00145 <span class="comment">                         $mail-&gt;Host = &quot;smtp.gmail.com&quot;; // sets GMAIL as the SMTP server</span>
<a name="l00146"></a>00146 <span class="comment">                         $mail-&gt;Port = 465; // set the SMTP port for the GMAIL server</span>
<a name="l00147"></a>00147 <span class="comment">                         $mail-&gt;Username = &quot;User@gmail.com&quot;; // GMAIL username</span>
<a name="l00148"></a>00148 <span class="comment">                         $mail-&gt;Password = &quot;&quot;; // GMAIL password</span>
<a name="l00149"></a>00149 <span class="comment">                         //End Gmail</span>
<a name="l00150"></a>00150 <span class="comment">                         */</span>
<a name="l00151"></a>00151                         <span class="comment">//Local Sendmale config</span>
<a name="l00152"></a>00152                         <span class="comment">//$mail-&gt;SMTPAuth = true; // enable SMTP authentication</span>
<a name="l00153"></a>00153                         <span class="comment">//$mail-&gt;SMTPSecure = &quot;ssl&quot;; // sets the prefix to the server</span>
<a name="l00154"></a>00154                         $mail-&gt;Host = code\cConfig::C_STR_SMTP_HOST; <span class="comment">// sets GMAIL as the SMTP server</span>
<a name="l00155"></a>00155                         <span class="comment">//$mail-&gt;Port = 25; // set the SMTP port for the GMAIL server</span>
<a name="l00156"></a>00156                         <span class="comment">//$mail-&gt;Username = &quot;Randy.Blancett@gmail.com&quot;; // GMAIL username</span>
<a name="l00157"></a>00157                         <span class="comment">//$mail-&gt;Password = &quot;&quot;; // GMAIL password</span>
<a name="l00158"></a>00158                         <span class="comment">//End Local Sendmale config</span>
<a name="l00159"></a>00159 
<a name="l00160"></a>00160                         $mail-&gt;From = <span class="stringliteral">&quot;NoReply@AmpleHarvest.com&quot;</span>;
<a name="l00161"></a>00161                         $mail-&gt;FromName = <span class="stringliteral">&quot;AmpleHarvest&quot;</span>;
<a name="l00162"></a>00162                         $mail-&gt;Subject = $this-&gt;<a class="code" href="classc_mail_notification.html#af1829677e10e85cba261ff239fda40eb" title="Returns the subject of the email.">get_Subject</a>();
<a name="l00163"></a>00163                         $mail-&gt;MsgHTML($this-&gt;<a class="code" href="classc_mail_notification.html#ab82c92e2745c3e15a7028f770091c094" title="Gets the content of the email.">get_Body</a>());
<a name="l00164"></a>00164 
<a name="l00165"></a>00165                         <span class="comment">//$mail-&gt;AddReplyTo(&quot;reply@email.com&quot;,&quot;reply name&quot;);//they answer here, optional</span>
<a name="l00166"></a>00166                         <span class="keywordflow">foreach</span> ($this-&gt;m_arr_To as $To)
<a name="l00167"></a>00167                         {
<a name="l00168"></a>00168                                 <span class="keywordflow">if</span> ($To)
<a name="l00169"></a>00169                                 {
<a name="l00170"></a>00170                                         $mail-&gt;AddAddress($To);
<a name="l00171"></a>00171                                 }
<a name="l00172"></a>00172                         }
<a name="l00173"></a>00173 
<a name="l00174"></a>00174                         <span class="keywordflow">foreach</span> ($this-&gt;m_arr_CC as $CC)
<a name="l00175"></a>00175                         {
<a name="l00176"></a>00176                                 <span class="keywordflow">if</span> ($CC)
<a name="l00177"></a>00177                                 {
<a name="l00178"></a>00178                                         $mail-&gt;AddCC($CC);
<a name="l00179"></a>00179                                 }
<a name="l00180"></a>00180                         }
<a name="l00181"></a>00181                         <span class="comment">//$mail-&gt;AddAddress(&quot;address@to.com&quot;, &quot;name to&quot;);</span>
<a name="l00182"></a>00182                         $mail-&gt;IsHTML(<span class="keyword">true</span>); <span class="comment">// send as HTML</span>
<a name="l00183"></a>00183 
<a name="l00184"></a>00184                         $bool_Success = $mail-&gt;Send();
<a name="l00185"></a>00185 
<a name="l00186"></a>00186                         <a class="code" href="index4_solr_8php.html#ad04214d6992689fd817348520e7aa0be">$str_Return</a> = ob_get_clean();
<a name="l00187"></a>00187 
<a name="l00188"></a>00188                         print(<a class="code" href="index4_solr_8php.html#ad04214d6992689fd817348520e7aa0be">$str_Return</a>);
<a name="l00189"></a>00189 
<a name="l00190"></a>00190                         <span class="keywordflow">if</span> (!$bool_Success)
<a name="l00191"></a>00191                         { <span class="comment">//to see if we return a message or a value bolean</span>
<a name="l00192"></a>00192                                 <span class="comment">//echo &quot;Mailer Error: &quot; . $mail-&gt;ErrorInfo;</span>
<a name="l00193"></a>00193                                 $this-&gt;m_str_Error = <a class="code" href="index4_solr_8php.html#ad04214d6992689fd817348520e7aa0be">$str_Return</a>;
<a name="l00194"></a>00194                                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00195"></a>00195                         }
<a name="l00196"></a>00196                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00197"></a>00197                 }
<a name="l00198"></a>00198 
<a name="l00208"></a><a class="code" href="classc_mail_notification.html#acbe3cfbe6a70923b421d61ccece35e36">00208</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#acbe3cfbe6a70923b421d61ccece35e36" title="Sets the text of the body.">set_Body</a>($str_Body)
<a name="l00209"></a>00209                 {
<a name="l00210"></a>00210                         $this-&gt;m_str_Body = $str_Body;
<a name="l00211"></a>00211                 }
<a name="l00212"></a>00212 
<a name="l00213"></a><a class="code" href="classc_mail_notification.html#ae0aeef2e4fe928100c40c8e413ea3a82">00213</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#ae0aeef2e4fe928100c40c8e413ea3a82">set_Error</a>($str_Msg)
<a name="l00214"></a>00214                 {
<a name="l00215"></a>00215                         $this-&gt;m_str_Error = $str_Msg;
<a name="l00216"></a>00216                 }
<a name="l00217"></a>00217 
<a name="l00218"></a><a class="code" href="classc_mail_notification.html#aa905f827d98bdd8a2cdbc81d01f9febe">00218</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#aa905f827d98bdd8a2cdbc81d01f9febe">set_From</a>($str_From)
<a name="l00219"></a>00219                 {
<a name="l00220"></a>00220                         $this-&gt;m_str_From = $str_From;
<a name="l00221"></a>00221                 }
<a name="l00222"></a>00222 
<a name="l00227"></a><a class="code" href="classc_mail_notification.html#a8ad0cbd4250509618c3b4c829f1b251b">00227</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#a8ad0cbd4250509618c3b4c829f1b251b" title="Sets the Subject of the email.">set_Subject</a>($str_Subject)
<a name="l00228"></a>00228                 {
<a name="l00229"></a>00229                         $this-&gt;m_str_Subject = $str_Subject;
<a name="l00230"></a>00230                 }
<a name="l00231"></a>00231 
<a name="l00243"></a><a class="code" href="classc_mail_notification.html#abda0088820a09559637dae57a27937e4">00243</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#abda0088820a09559637dae57a27937e4" title="Returns error messages collected while sending email.">get_Error</a>()
<a name="l00244"></a>00244                 {
<a name="l00245"></a>00245                         <span class="keywordflow">return</span> $this-&gt;m_str_Error;
<a name="l00246"></a>00246                 }
<a name="l00247"></a>00247 
<a name="l00252"></a><a class="code" href="classc_mail_notification.html#ab82c92e2745c3e15a7028f770091c094">00252</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#ab82c92e2745c3e15a7028f770091c094" title="Gets the content of the email.">get_Body</a>()
<a name="l00253"></a>00253                 {
<a name="l00254"></a>00254                         <span class="keywordflow">return</span> $this-&gt;m_str_Body;
<a name="l00255"></a>00255                 }
<a name="l00256"></a>00256 
<a name="l00261"></a><a class="code" href="classc_mail_notification.html#ad965596d831268b2004931ca359ddd24">00261</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#ad965596d831268b2004931ca359ddd24" title="Returns the Carbon Copy Adresses as a string.">get_CC</a>()
<a name="l00262"></a>00262                 {
<a name="l00263"></a>00263                         <span class="keywordflow">return</span> implode(<span class="stringliteral">&quot;; &quot;</span>, $this-&gt;m_arr_CC);
<a name="l00264"></a>00264                 }
<a name="l00265"></a>00265 
<a name="l00270"></a><a class="code" href="classc_mail_notification.html#aa008b15b13fa348e14244158f7bd2746">00270</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#aa008b15b13fa348e14244158f7bd2746" title="Gets the from Address.">get_From</a>()
<a name="l00271"></a>00271                 {
<a name="l00272"></a>00272                         <span class="keywordflow">return</span> $this-&gt;m_str_From;
<a name="l00273"></a>00273                 }
<a name="l00274"></a>00274 
<a name="l00279"></a><a class="code" href="classc_mail_notification.html#af1829677e10e85cba261ff239fda40eb">00279</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#af1829677e10e85cba261ff239fda40eb" title="Returns the subject of the email.">get_Subject</a>()
<a name="l00280"></a>00280                 {
<a name="l00281"></a>00281                         <span class="keywordflow">return</span> $this-&gt;m_str_Subject;
<a name="l00282"></a>00282                 }
<a name="l00283"></a>00283 
<a name="l00288"></a><a class="code" href="classc_mail_notification.html#abec7b1ac4f2cc97ae5cb4ec104028b9f">00288</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#abec7b1ac4f2cc97ae5cb4ec104028b9f" title="Returns the to Adresses as a string.">get_To</a>()
<a name="l00289"></a>00289                 {
<a name="l00290"></a>00290                         <span class="keywordflow">return</span> implode(<span class="stringliteral">&quot;; &quot;</span>, $this-&gt;m_arr_To);
<a name="l00291"></a>00291                 }
<a name="l00292"></a>00292 
<a name="l00300"></a><a class="code" href="classc_mail_notification.html#ac97d3c028d5ccc36589358b304fea64f">00300</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_mail_notification.html#ac97d3c028d5ccc36589358b304fea64f" title="Debuging out put this will print all the data of the object to the screen.">debug_Output2HTML</a>()
<a name="l00301"></a>00301                 {
<a name="l00302"></a>00302                         print(<span class="stringliteral">&quot;From : &quot;</span> . $this-&gt;<a class="code" href="classc_mail_notification.html#aa008b15b13fa348e14244158f7bd2746" title="Gets the from Address.">get_From</a>() . <span class="stringliteral">&quot;&lt;br/&gt;&quot;</span>);
<a name="l00303"></a>00303                         print(<span class="stringliteral">&quot;To : &quot;</span> . $this-&gt;<a class="code" href="classc_mail_notification.html#abec7b1ac4f2cc97ae5cb4ec104028b9f" title="Returns the to Adresses as a string.">get_To</a>() . <span class="stringliteral">&quot;&lt;br/&gt;&quot;</span>);
<a name="l00304"></a>00304                         print(<span class="stringliteral">&quot;CC : &quot;</span> . $this-&gt;<a class="code" href="classc_mail_notification.html#ad965596d831268b2004931ca359ddd24" title="Returns the Carbon Copy Adresses as a string.">get_CC</a>() . <span class="stringliteral">&quot;&lt;br/&gt;&quot;</span>);
<a name="l00305"></a>00305                         print(<span class="stringliteral">&quot;Subject : &quot;</span> . $this-&gt;<a class="code" href="classc_mail_notification.html#af1829677e10e85cba261ff239fda40eb" title="Returns the subject of the email.">get_Subject</a>() . <span class="stringliteral">&quot;&lt;br/&gt;&quot;</span>);
<a name="l00306"></a>00306                         print(<span class="stringliteral">&quot;Body : &quot;</span> . $this-&gt;<a class="code" href="classc_mail_notification.html#ab82c92e2745c3e15a7028f770091c094" title="Gets the content of the email.">get_Body</a>() . <span class="stringliteral">&quot;&lt;br/&gt;&quot;</span>);
<a name="l00307"></a>00307                 }
<a name="l00308"></a>00308         }
<a name="l00309"></a>00309 ?&gt;
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="c_mail_notification_8php.html">cMailNotification.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Jan 23 2012 13:34:19 for AmpleHarvest by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
